<?php
/**
 * Coolcsn Zend Framework 2 Navigation Module
 * 
 * @link https://github.com/coolcsn/CsnAclNavigation for the canonical source repository
 * @copyright Copyright (c) 2005-2013 LightSoft 2005 Ltd. Bulgaria
 * @license https://github.com/coolcsn/CsnAclNavigation/blob/master/LICENSE BSDLicense
 * @authors Stoyan Cheresharov <stoyan@coolcsn.com>, Anton Tonev <atonevbg@gmail.com>
*/

return array(
    'navigation' => array(
        'default' => array(
            array(
				'label' => 'Home',
				'route' => 'home',
                'pages' => array(
					 array(
						 'label' => 'Login',
						 'route' => 'login', 
						 'controller' => 'Index',
						 'action'     => 'login',
						 'resource'	  => 'CsnUser\Controller\Index',
						 'privilege'  => 'login',
					 ),
					 array(
						 'label' => 'User',
						 'route' => 'user', 
						 'controller' => 'Index',
						 'action'     => 'index',
						 'resource'	  => 'CsnUser\Controller\Index',
						 'privilege'  => 'index',
					 ),
					 array(
						 'label' => 'Registration',
						 'route' => 'signup', 
						 'controller' => 'Registration',
						 'action'     => 'index',
						 'resource'	  => 'CsnUser\Controller\Registration',
						 'privilege'  => 'index',
						 'title'	  => 'Registration Form'
					 ),
					array(
						 'label' => 'Edit profile',
						 'route' => 'editProfile', 
						 'controller' => 'Registration',
						 'action'     => 'editProfile',
						 'resource'	  => 'CsnUser\Controller\Registration',
						 'privilege'  => 'editProfile',
					),
					array(
						'label' => 'Zend',
						'uri'   => 'http://framework.zend.com/',
						'resource' => 'Zend',
						'privilege'	=>	'uri'
					),
				
					array(
						 'label' => 'CMS',
						 'route' => 'csn-cms', 
						 'controller' => 'Index',
						 'action'     => 'index',
						 'resource'	  => 'CsnCms\Controller\Index',
						 'privilege'  => 'index'
					),
				
					array(
						 'label' => 'Logout',
						 'route' => 'logout', 
						 'controller' => 'Index',
						 'action'     => 'logout',
						 'resource'	  => 'CsnUser\Controller\Index',
						 'privilege'  => 'logout'
					),			
					/** User Control */
					array(
						'label' => 'User Control',
						'route' => 'user-control', 
						'controller' => 'User',
						'action'     => 'index',
						'resource'	 => 'CsnUser\Controller\User',
						'privilege'  => 'index',
						'pages'	     =>	array(
							array(
								'label' 	 => 'User List',
								'controller' => 'User',
								'action'     => 'index',
								'resource'	 => 'CsnUser\Controller\User',
								'privilege'  => 'index',
							)
						)
					),
				)
			)
		),
	),
    'service_manager' => array(
        'factories' => array(
            'navigation' => 'Zend\Navigation\Service\DefaultNavigationFactory',
        ),
    ),
);